#ifndef CSOUND_H
#define CSOUND_H

#include <QString>
#include <Phonon/AudioOutput>
#include <Phonon/MediaSource>
#include <Phonon/MediaObject>

class CSound : QObject
{
    Q_OBJECT

public:
    CSound( Phonon::MediaSource &source );
    ~CSound();

    void play( double sound );
    bool isFinished();

public slots:
    void finished();

private:

    Phonon::MediaObject *mediaObject;
    Phonon::AudioOutput *audioOutput;

    bool finish;

};

#endif // CSOUND_H
